package com.cyz.springdemo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "api", ignoreInvalidFields = false)
@PropertySource("classpath:api.properties")
public class ApiProperties {

    //今日油价
    private String todayoilHost;
    private String todayoilPath;
    private String todayoilMethod;
    private String todayoilAppcode;

    //地区天气预报
    private String weatherHost;
    private String weatherPath;
    private String weatherMethod;
    private String weatherAppcode;

    public String getTodayoilHost() {
        return todayoilHost;
    }

    public void setTodayoilHost(String todayoilHost) {
        this.todayoilHost = todayoilHost;
    }

    public String getTodayoilPath() {
        return todayoilPath;
    }

    public void setTodayoilPath(String todayoilPath) {
        this.todayoilPath = todayoilPath;
    }

    public String getTodayoilMethod() {
        return todayoilMethod;
    }

    public void setTodayoilMethod(String todayoilMethod) {
        this.todayoilMethod = todayoilMethod;
    }

    public String getTodayoilAppcode() {
        return todayoilAppcode;
    }

    public void setTodayoilAppcode(String todayoilAppcode) {
        this.todayoilAppcode = todayoilAppcode;
    }

    public String getWeatherHost() {
        return weatherHost;
    }

    public void setWeatherHost(String weatherHost) {
        this.weatherHost = weatherHost;
    }

    public String getWeatherPath() {
        return weatherPath;
    }

    public void setWeatherPath(String weatherPath) {
        this.weatherPath = weatherPath;
    }

    public String getWeatherMethod() {
        return weatherMethod;
    }

    public void setWeatherMethod(String weatherMethod) {
        this.weatherMethod = weatherMethod;
    }

    public String getWeatherAppcode() {
        return weatherAppcode;
    }

    public void setWeatherAppcode(String weatherAppcode) {
        this.weatherAppcode = weatherAppcode;
    }
}
